<html>
    <head>
        <title>KRUG1 Bug Base </title>
        <%= stylesheet_link_tag "main", :media => "all" %>
        <%= stylesheet_link_tag "bugbase", :media => "all" %>
    </head>
    <body>
        <div id="banner">
            <%= @page_title || "KRUG1 Bug Base" %><br/>
        </div>
        <div id="columns">
            <div id="side">
             <% if (session[:name]!=nil) %>
                <%= link_to "Log out", :controller => "login", :action => "logout" %><br />
                <%= link_to "Bugs", :controller => "bugs" %><br />                
                <%= link_to "Projects", :controller => "projects" %><br />
                <%= link_to "Comments", :controller => "comments" %><br />
             <% else %>
                <%= link_to "Log in", :controller => "login" %><br />                
             <% end %>   
            </div>
            <div id="main">
                <p style="color: green"><%= flash[:notice] %></p>
            
                <%= @content_for_layout %>
            </div>
        </div>
    </body>
</html>
